﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewsWcfWebService
{
    public class StringUtils
    {
        public static char getFirstCharOfString(string strSource)
        {
            if (strSource.Length == 0)
                return '\0';
            char kitu = strSource[0];
            return kitu;
        }

        public static string combineTwoString(string headStr, string behindStr)
        {
            return string.Format(@"{0}{1}", headStr, behindStr);
        }
        public static string formatStringWithChar(string str, string strSub)
        {
            return str.Replace(strSub, "");
        }
    }
}
